pixbuf utils: Preserve format information
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 23:04:01 +0000 (19:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 23:44:26 +0000 (19:44 -0400)
commit719774393874e93455bb706a1d28883acfcb0163
tree81773fb2e22b03dc5b28ff8ef0700baa57e307c0
parentdd5ee87b5b65fff51e671ed092e18a524de78379
pixbuf utils: Preserve format information

When we are loading themed icons, we know if
we deal with an svg or png file, so it is
entirely unnecessarily to have gdk-pixbuf
use g_content_type guess to rediscover that
information.

Change the pixbuf utils apis we have to allow
passing format information down to where we
can use it when creating the pixbuf loader.
gtk/gdkpixbufutilsprivate.h
gtk/tools/gdkpixbufutils.c